package com.easyj.base.common.export;

import java.io.Serializable;

/**
 * 导出列
 * @author hjf
 *
 */
public class ExpField implements Serializable {

	
	private static final long serialVersionUID = 1643115681285695616L;
	
	private String name;
	private String title;
	private String align="left"; //default
	private String format;
	private boolean required=false;
	private int width=16;
	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public ExpField(){
		
	}
	
    public ExpField(String name,String title){
		this.name=name;
		this.title=title;
	}
	public ExpField(String name,String title,String align){
		this.name=name;
		this.title=title;
    	this.align=align;
	}
	
	public ExpField(String name,String title,String align,String format){
		this.name=name;
		this.title=title;
    	this.align=align;
    	this.format=format;
	}
	
	public ExpField(String name,String title,String align,String format,boolean required){
		this.name=name;
		this.title=title;
    	this.align=align;
    	this.format=format;
    	this.required=required;
	}
	
	public ExpField(String name,String title,String align,String format,boolean required,int width){
		this.name=name;
		this.title=title;
    	this.align=align;
    	this.format=format;
    	this.required=required;
    	this.width=width;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getAlign() {
		return align;
	}
	public void setAlign(String align) {
		this.align = align;
	}

	public String getFormat() {
		return format;
	}

	public void setFormat(String format) {
		this.format = format;
	}

	public boolean isRequired() {
		return required;
	}

	public void setRequired(boolean required) {
		this.required = required;
	}
	
	

}
